Skip to content

Configurable FileExplorer footer#4

Open
keyvizsla wants to merge 2 commits into
Brainwires:mainfrom
keyvizsla:configurable_fileexplorer_footer
Open

Configurable FileExplorer footer#4
keyvizsla wants to merge 2 commits into
Brainwires:mainfrom
keyvizsla:configurable_fileexplorer_footer

Conversation

@keyvizsla

Copy link
Copy Markdown

TL;DR

This PR adds functionality to customize the listed keybindings in the footer of the FileExplorer.

Why

While using ratatui-interact for a personal project, I realized that I needed to implement the keybinds for the FileExplorer myself, yet the footer would always display a default set of keybinds, which might not apply in my case, since I need to define my own keybinds anyway.
Therefore, I have added this FooterBuilder, where you can define what keybinds to list exactly, should you want to do so.

Does this break existing functionality?

This is not a breaking change. The FileExplorer per default uses the default FooterBuilder, which then outputs the exact same footer, as the "old" build_footer method.
The FooterBuilder is somewhat rudimentary and really only lets you define custom keybinds, but in the future if someone desires that feature, one could also add custom styling configuration and such for the footer itself.

@keyvizsla keyvizsla force-pushed the configurable_fileexplorer_footer branch from f2c7be1 to b2e7519 Compare May 17, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant